.class public Lcom/uucun/adsdk/a/c;
.super Ljava/lang/Object;


# static fields
.field private static final a:Ljava/lang/String;

.field private static b:Lcom/uucun/adsdk/a/c;


# instance fields
.field private c:Ljava/util/concurrent/ConcurrentLinkedQueue;

.field private d:Ljava/util/concurrent/ConcurrentLinkedQueue;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, Lcom/uucun/adsdk/a/c;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/uucun/adsdk/a/c;->a:Ljava/lang/String;

    const/4 v0, 0x0

    sput-object v0, Lcom/uucun/adsdk/a/c;->b:Lcom/uucun/adsdk/a/c;

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/c;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;

    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/a/c;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    return-void
.end method

.method public static a()Lcom/uucun/adsdk/a/c;
    .locals 1

    sget-object v0, Lcom/uucun/adsdk/a/c;->b:Lcom/uucun/adsdk/a/c;

    if-nez v0, :cond_0

    new-instance v0, Lcom/uucun/adsdk/a/c;

    invoke-direct {v0}, Lcom/uucun/adsdk/a/c;-><init>()V

    sput-object v0, Lcom/uucun/adsdk/a/c;->b:Lcom/uucun/adsdk/a/c;

    :cond_0
    sget-object v0, Lcom/uucun/adsdk/a/c;->b:Lcom/uucun/adsdk/a/c;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/uucun/adsdk/c/b;)V
    .locals 2

    iget-object v0, p0, Lcom/uucun/adsdk/a/c;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/uucun/adsdk/a/c;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    iget-object v1, p1, Lcom/uucun/adsdk/c/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public a(Ljava/lang/String;)Z
    .locals 2

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    move v0, v1

    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/a/c;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2

    invoke-static {}, Lcom/uucun/adsdk/a/b;->a()Lcom/uucun/adsdk/a/b;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/uucun/adsdk/a/b;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    const/4 v0, 0x1

    goto :goto_0

    :cond_3
    move v0, v1

    goto :goto_0
.end method

.method public b(Lcom/uucun/adsdk/c/b;)V
    .locals 2

    iget-object v0, p0, Lcom/uucun/adsdk/a/c;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/uucun/adsdk/a/c;->d:Ljava/util/concurrent/ConcurrentLinkedQueue;

    iget-object v1, p1, Lcom/uucun/adsdk/c/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    return-void
.end method
